﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="java.util.*"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<c:set var="baseURL" value="${base}"/>
<c:set var="ctx" value="${base}"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>首页</title>
<link href="${baseURL}/css/main.css" rel="stylesheet" type="text/css" />
<script src="${baseURL}/js/common.js"></script>
<script src="${baseURL}/js/jquery-1.4.4.min.js"></script>
</head>

<body>
<p>&nbsp;</p>
<form method="post" name="saveForm" action="${baseURL}/systemUser/login" onsubmit="return checkInput()">
<table width="400" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#FFFFFF">
  <tr align="center">
  		<td colspan="2" class="titleBgColor"><b>后台登录</b></td>
	</tr>
  <tr>
    <td align="right"><b>用户名：</b></td>
    <td><input name="username" type="text" value="admin" class="myInput" id="userName" size="16" maxlength="16"/></td>
  </tr>
  <tr>
    <td align="right"><b>密码：</b></td>
    <td><input name="pw" type="password" value="1" class="myInput" id="password" size="16" maxlength="16"/></td>
  </tr>
  <tr align="center">
      <td colspan="2"><input name="Submit" type="submit" class="myButton" value="登录系统"/>
        <input name="Submit2" type="reset" class="myButton" value="重新填写"/>
        <br></br><font color="red">${msg}</font></td>
  </tr>
</table>
</form>

<script>
document.getElementById("username").focus();
function checkInput(){
	username = document.getElementById("username");
	if(username.value==""){
		alert("请输入用户名。");
		username.focus();
		return false;
	}
	password = document.getElementById("password");
	if(password.value==""){
		alert("请输入密码。");
		password.focus();
		return false;
	}
	return true;
}
</script>

</body>
</html>